$(document).ready(function () {
    layui.use('form', function () {
        var form = layui.form;
        form.render();
    });
});

function addPersonnel() {

    var formJSON = $("#personnel-submit-form").serializeObject();

    // 添加人员
    ajax(
        "/admin/personnel/addPersonnel", "POST",
        formJSON, true, true, true
    ).done(function () {
        loadingPage("/admin/personnel/personnel");;
    });

}